package edu.sctu.zcy.month201505.day20150508.text1;

/**
 * Created by Administrator on 2015/5/8/0008.
 */
class TextThree implements TextSex {

    @Override
    public int getNumber(int number) {
        int a;
        int b;
        int c;
        for (int i = 100; i < number; i++) {

            a = i / 100;
            b = (i - 100 * a) / 10;
            c = i - 100 * a - 10 * b;

            if (a * a * a + b * b * b + c * c * c == i) {
                System.out.println(i + "是水仙花数");
            }
        }
        System.out.println("我是实现接口的！");
        return get();
    }

    @Override
    public String name(String name) {
        return name;
    }

    public void num() {
        TextFive textFive = new TextFive();
        textFive.shows(this);

    }

    public int get() {

        return 0;
    }
}
